<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/public/admin/js/html5.js"></script>
<script type="text/javascript" src="/public/admin/js/respond.min.js"></script>
<script type="text/javascript" src="/public/admin/js/PIE_IE678.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="/public/admin/css/H-ui.css"/>
<link type="text/css" rel="stylesheet" href="/public/admin/css/H-ui.admin.css"/>
<link type="text/css" rel="stylesheet" href="/public/admin/font/font-awesome.min.css"/>
<!--[if IE 7]>
<link href="/public/admin/font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<title>代理流水</title>
<script type="text/javascript" src="/public/admin/laydate/laydate.js"></script>

</head>
<body>
<nav class="Hui-breadcrumb"><i class="icon-home"></i> 首页 <span class="c-gray en">&gt;</span> 代理管理 <span class="c-gray en">&gt;</span> 代理流水<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="icon-refresh"></i></a></nav>
<div class="pd-20">
  <div class="text-c">
    <form action="/" method="get">
         <input type="hidden" value="admin/dlls" name="G"/>
         <input type="hidden" value="<?php echo $_GET['i'];?>" name="i"/>
        <input type="text" name="s1" id="" placeholder="开始时间" value="<?php echo $_GET['s1'];?>" style="width:150px" class="input-text" class="laydate-icon" onclick="laydate()" > -
        <input type="text" name="s2" id="" placeholder="结束时间" value="<?php echo $_GET['s2'];?>" style="width:150px" class="input-text" class="laydate-icon" onclick="laydate()"> 
        &nbsp;&nbsp;<button type="submit" class="btn btn-success" id=""><i class="icon-search"></i> 搜代理</button>
    </form>
  </div>
<br/>

<table class="table table-border table-bordered table-hover table-bg table-sort">
        <thead>
        <tr class="text-c"><th colspan="7">总统计</th></tr>
        <tr class="text-c"><th>查询时间</th><th>会员数</th>
        <th>竞猜</th><th>中奖</th>
        <th>总上分</th><th>总下分</th>
        <th>盈利</th></tr>
       
        </thead>
         <tbody>
 
      <tr class="text-c">
        <td ><?php echo $_GET['s1']?$_GET['s1']:'开通代理';?> 至 <?php echo $_GET['s2']?$_GET['s2']:date('Y-m-d');?></th>
        <td ><?php echo $zt[0];?></td>
        <td ><?php echo $zt[1];?></td>
        <td ><?php echo $zt[2];?></td>
         <td ><?php echo $zt[3];?></td>
          <td ><?php echo $zt[4];?></td>
        
        <td><?php echo $zt[1]-$zt[2];?></td>
        
      </tr>
   
    </tbody>
</table>
<br/>
<br/>
  <table class="table table-border table-bordered table-hover table-bg table-sort">
    <thead>
      <tr class="text-c">
        <th width="25"><input type="checkbox" name="" value=""></th>
        <th width="80">ID</th>
        <th width="100">会员</th>
        <th width="90">竞猜总额</th>
        <th width="90">中奖总额</th>
        <th width="90">上分</th>
        <th width="90">下分</th>
        <th width="150">盈利</th>
        <th width="150">开户时间</th>
        <th width="200">操作</th>
      </tr>
    </thead>
    <tbody>
    <?php foreach ($arr as $v):?>
      <tr class="text-c">
      <td width="25"><input type="checkbox" name="" value=""></td>
        <td width="80"><?php echo $v['ID'];?></th>
        <td width="100"><?php echo $v['nickname'];?></td>
        <td width="90"><?php echo $v['ed']?$v['ed']:0;?></td>
        <td width="90"><?php echo $v['zj']?$v['zj']:0;?></td>
        <td width="90"><?php echo $v['sf']?$v['sf']:0;?></td>
        <td width="90"><?php echo $v['xf']?$v['xf']:0;?></td>
        
        <td width="150"><?php echo $v['ed']-$v['zj'];?></td>
        <td width="150"><?php echo date('Y-m-d H:i:s',$v['gtime']);?></td>
        <td width="200">
            <a class="btn btn-success" onclick="Lalert(700,400,'客户：<?php echo $v['nickname'];?> 细账','/?G=admin/dlkhxz&i=<?php echo $v['ID'];?>&s1=<?php echo $_GET['s1']?$_GET['s1']:0;?>&s2=<?php echo $_GET['s2']?$_GET['s2']:date('Y-m-d');?>');">细账</a>
        </td>
      </tr>
     <?php endforeach;?>
    </tbody>
  </table>
  <div id="pageNav" class="pageNav"></div>
</div>
<script type="text/javascript" src="/public/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="/public/admin/layer/layer.min.js"></script>
<script type="text/javascript" src="/public/admin/js/self.js"></script>
<script type="text/javascript" src="/public/admin/js/H-ui.js"></script>
<script type="text/javascript" src="/public/admin/js/H-ui.admin.js"></script>

</body>
</html>